package com.example.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;
import java.util.List;

@Data
@TableName("msslyy_comment")
public class MsslyyComment extends Model<MsslyyComment> {
    /**
      * 主键
      */
    @ApiModelProperty(value = "ID")
    @TableId(value = "comment_id", type = IdType.AUTO)
    private Long id;



    /**
      * 评论商品ID 
      */
    @ApiModelProperty(value = "评论商品ID")
    private Long bookId;

    /**
      * 评论人ID 
      */
    @ApiModelProperty(value = "评论人ID")
    private Long userId;

    /**
      * 评论内容 
      */
    @ApiModelProperty(value = "评论内容")
    private String commentContent;

    /**
      * 父ID 
      */
    @ApiModelProperty(value = "父ID")
    private Long parentId;

    /**
      * 状态 
      */
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
      * 逻辑删除 
      */
    @ApiModelProperty(value = "逻辑删除")
    private Integer deleted;

    /**
      * 乐观锁 
      */
    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;

    /**
      * 创建时间 
      */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
      * 修改时间 
      */
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    @TableField(exist = false)
    private String userImages;
    /**
     * 昵称
     */

    @ApiModelProperty(value = "昵称")
    @TableField(exist = false)
    private String userNickName;

    @TableField(exist = false)
    private List<MsslyyComment> children;

}